package com.gsk.europepharma.salesReport.hibernate.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the sp_bo.mv_sp_bo_sales_report_Contact table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="sp_bo.mv_sp_bo_sales_report_Contact"
 */

public abstract class BasemvSpBoSalesReportContact  implements Serializable {

	public static String REF = "mvSpBoSalesReportContact";
	public static String PROP_LINE1 = "line1";
	public static String PROP_UGA_CODE = "ugaCode";
	public static String PROP_SPECIALITY_CODE = "specialityCode";
	public static String PROP_LIB_UGP = "libUgp";
	public static String PROP_FIRST_NAME = "firstName";
	public static String PROP_CODE_UGP = "codeUgp";
	public static String PROP_ID = "id";
	public static String PROP_ZIP = "zip";
	public static String PROP_LAST_NAME = "lastName";
	public static String PROP_CONTACT_SALSA_ID = "contactSalsaId";
	public static String PROP_CITY = "city";


	// constructors
	public BasemvSpBoSalesReportContact () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasemvSpBoSalesReportContact (long id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private long id;

	// fields
	private java.lang.String ugaCode;
	private java.lang.String codeUgp;
	private java.lang.String libUgp;
	private java.lang.String contactSalsaId;
	private java.lang.String lastName;
	private java.lang.String firstName;
	private java.lang.String line1;
	private java.lang.String zip;
	private java.lang.String city;
	private java.lang.String specialityCode;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  column="ID"
     */
	public long getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (long id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: UGA_CODE
	 */
	public java.lang.String getUgaCode () {
		return ugaCode;
	}

	/**
	 * Set the value related to the column: UGA_CODE
	 * @param ugaCode the UGA_CODE value
	 */
	public void setUgaCode (java.lang.String ugaCode) {
		this.ugaCode = ugaCode;
	}



	/**
	 * Return the value associated with the column: C_UGP
	 */
	public java.lang.String getCodeUgp () {
		return codeUgp;
	}

	/**
	 * Set the value related to the column: C_UGP
	 * @param codeUgp the C_UGP value
	 */
	public void setCodeUgp (java.lang.String codeUgp) {
		this.codeUgp = codeUgp;
	}



	/**
	 * Return the value associated with the column: L_UGP
	 */
	public java.lang.String getLibUgp () {
		return libUgp;
	}

	/**
	 * Set the value related to the column: L_UGP
	 * @param libUgp the L_UGP value
	 */
	public void setLibUgp (java.lang.String libUgp) {
		this.libUgp = libUgp;
	}



	/**
	 * Return the value associated with the column: CONTACT_SALSA_ID
	 */
	public java.lang.String getContactSalsaId () {
		return contactSalsaId;
	}

	/**
	 * Set the value related to the column: CONTACT_SALSA_ID
	 * @param contactSalsaId the CONTACT_SALSA_ID value
	 */
	public void setContactSalsaId (java.lang.String contactSalsaId) {
		this.contactSalsaId = contactSalsaId;
	}



	/**
	 * Return the value associated with the column: LAST_NAME
	 */
	public java.lang.String getLastName () {
		return lastName;
	}

	/**
	 * Set the value related to the column: LAST_NAME
	 * @param lastName the LAST_NAME value
	 */
	public void setLastName (java.lang.String lastName) {
		this.lastName = lastName;
	}



	/**
	 * Return the value associated with the column: FIRST_NAME
	 */
	public java.lang.String getFirstName () {
		return firstName;
	}

	/**
	 * Set the value related to the column: FIRST_NAME
	 * @param firstName the FIRST_NAME value
	 */
	public void setFirstName (java.lang.String firstName) {
		this.firstName = firstName;
	}



	/**
	 * Return the value associated with the column: LINE1
	 */
	public java.lang.String getLine1 () {
		return line1;
	}

	/**
	 * Set the value related to the column: LINE1
	 * @param line1 the LINE1 value
	 */
	public void setLine1 (java.lang.String line1) {
		this.line1 = line1;
	}



	/**
	 * Return the value associated with the column: ZIP
	 */
	public java.lang.String getZip () {
		return zip;
	}

	/**
	 * Set the value related to the column: ZIP
	 * @param zip the ZIP value
	 */
	public void setZip (java.lang.String zip) {
		this.zip = zip;
	}



	/**
	 * Return the value associated with the column: CITY
	 */
	public java.lang.String getCity () {
		return city;
	}

	/**
	 * Set the value related to the column: CITY
	 * @param city the CITY value
	 */
	public void setCity (java.lang.String city) {
		this.city = city;
	}



	/**
	 * Return the value associated with the column: SPECIALITY_CODE
	 */
	public java.lang.String getSpecialityCode () {
		return specialityCode;
	}

	/**
	 * Set the value related to the column: SPECIALITY_CODE
	 * @param specialityCode the SPECIALITY_CODE value
	 */
	public void setSpecialityCode (java.lang.String specialityCode) {
		this.specialityCode = specialityCode;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportContact)) return false;
		else {
			com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportContact mvSpBoSalesReportContact = (com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportContact) obj;
			return (this.getId() == mvSpBoSalesReportContact.getId());
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			return (int) this.getId();
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}